package com.tencreat.domain.mall.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencreat.common.core.domain.BaseVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.List;


/**
 * @author Administrator
 * 店铺信息
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Data
public class MallShopGoodsDTO extends BaseVO {

    private String goodSn;

    private String name;

    /***
     * 用于返回多级分类
     */
    private List<Long> categoryId;
    /***
     * 用于根据分类ID搜索
     */
    private Long category;

    private Long brandId;

    private String gallery;

    private String keywords;

    private String brief;

    private Integer isOnSale;

    private String picUrl;
    private String threeDUrl;

    private String shareUrl;

    private Integer isNew;

    @ApiModelProperty(value= "是否人气推荐，如果设置则可以在人气推荐页面展示")
    private Integer isHot;

    private String unit;

    private String detail;

    private String goodsType;

    private Long commoditySales;

    private Long expectCommoditySales;

    //private String salesDiscount;

    private LocalDateTime shelfTime;

    private Long inventory;

    private Long realSales;

    private Long contributionNum;

    /*****
     * 店铺店主名称
     */
    private String userName;

    private Integer pageNum;

    private Integer pageSize;


    @ApiModelProperty(value= "品牌 0-关闭 1-开启")
    private Integer brand;

    @ApiModelProperty(value= "爆款 0-关闭 1-开启")
    private Integer burst;

    @ApiModelProperty("开始时间")//
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    @ApiModelProperty("结束时间")//
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty(value= "最小价格")
    private BigDecimal min;
    @ApiModelProperty(value= "最大价格")
    private BigDecimal max;

/*
    @ApiModelProperty(value= "会员折扣")
    private BigDecimal memberDiscount;
*/

    @ApiModelProperty("简介/描述")
    private String describe;

    @ApiModelProperty(value= "商品视频")
    private String videoUrl;


    @ApiModelProperty("排序字段")
    private String sortStr;

    @ApiModelProperty("排序规则")
    private String sortDesc;

    @ApiModelProperty(value= "是否分佣 1-是 0-否")
    private Integer isBonus;

    @ApiModelProperty("营业时间开始")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm:ss")
    @TableField(exist = false)
    private LocalTime businessStartTime;

    @ApiModelProperty("营业时间结束")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm:ss")
    @TableField(exist = false)
    private LocalTime businessEndTime;

    private  BigDecimal originalPrice;//商品原价

}
